import { PageEnum } from '/@/enums/pageEnum';

// 创作者中心
export default {
  path: PageEnum.CREATOR,
  name: 'CREATOR',
  meta: {
    isAuthorCenter: true,
    requiredAuth: true,
  },
  components: {
    header: () => import('/@/components/MainHeaderBox.vue'),
    default: () => import('/@/views/creator/Creator.vue'),
  },
  redirect: PageEnum.CREATOR_HOME,
  children: [
    // 创作者中心-首页
    {
      path: PageEnum.CREATOR_HOME,
      name: 'CREATOR_HOME',
      component: () => import('/@/views/creator/home/Home.vue'),
    },
    // 创作者中心-内容管理-文章管理
    {
      path: PageEnum.CREATOR_CONTENT_ARTICLE,
      name: 'CREATOR_CONTENT_ARTICLE',
      redirect: PageEnum.CREATOR_CONTENT_ARTICLE_ESSAYS,
      component: () => import('/@/views/creator/content/Article.vue'),
      children: [
        // 创作者中心-内容管理-文章管理-文章
        {
          path: PageEnum.CREATOR_CONTENT_ARTICLE_ESSAYS,
          name: 'CREATOR_CONTENT_ARTICLE_ESSAYS',
          components: {},
        },
        // 创作者中心-内容管理-文章管理-草稿箱
        {
          path: PageEnum.CREATOR_CONTENT_ARTICLE_DRAFTS,
          name: 'CREATOR_CONTENT_ARTICLE_DRAFTS',
          components: {},
        },
      ],
    },
    // 创作者中心-内容管理-专栏管理
    {
      path: PageEnum.CREATOR_CONTENT_SP_COLUMN,
      name: 'CREATOR_CONTENT_SP_COLUMN',
      component: () => import('/@/views/creator/content/SpColumn.vue'),
    },
    // 创作者中心-内容管理-专栏管理-内容管理
    {
      path: PageEnum.CREATOR_CONTENT_SP_COLUMN_EDIT_PATTERN,
      name: 'CREATOR_CONTENT_SP_COLUMN_EDIT_PATTERN',
      component: () => import('/@/views/creator/content/SpColumnEdit.vue'),
    },
    // 创作者中心-内容管理-沸点管理
    {
      path: PageEnum.CREATOR_CONTENT_PINS,
      name: 'CREATOR_CONTENT_PINS',
      component: () => import('/@/views/creator/content/Pins.vue'),
    },
    // 创作者中心-数据中心-内容数据
    {
      path: PageEnum.CREATOR_DATA_CONTENT,
      name: 'CREATOR_DATA_CONTENT',
      redirect: PageEnum.CREATOR_DATA_CONTENT_ARTICLE,
      component: () => import('/@/views/creator/data/Content.vue'),
      children: [
        // 创作者中心-数据中心-内容数据-文章数据
        {
          path: PageEnum.CREATOR_DATA_CONTENT_ARTICLE,
          name: 'CREATOR_DATA_CONTENT_ARTICLE',
          components: {},
        },
        // 创作者中心-数据中心-内容数据-沸点数据
        {
          path: PageEnum.CREATOR_DATA_CONTENT_PIN,
          name: 'CREATOR_DATA_CONTENT_PIN',
          components: {},
        },
      ],
    },
    // 创作者中心-资源管理-我的订阅
    {
      path: PageEnum.CREATOR_RESOURCES_SUBSCRIPTION,
      name: 'CREATOR_RESOURCES_SUBSCRIPTION',
      component: () => import('/@/views/creator/resources/Subscription.vue'),
    },
    // 创作者中心-资源管理-我的收藏
    {
      path: PageEnum.CREATOR_RESOURCES_FAVORITE,
      name: 'CREATOR_RESOURCES_FAVORITE',
      component: () => import('/@/views/creator/resources/Favorite.vue'),
    },

    // 创作者中心-数据中心-关注者数据
    {
      path: PageEnum.CREATOR_DATA_FOLLOWER,
      name: 'CREATOR_DATA_FOLLOWER',
      components: {
        default: () => import('/@/views/creator/data/Follower.vue'),
        // CREATOR_DATA_FOLLOWER_DATA: () => import('/@/views/creator/data/FollowerData.vue'),
        // CREATOR_DATA_FOLLOWER_LIST: () => import('/@/views/creator/data/FollowerList.vue'),
      },
      redirect: PageEnum.CREATOR_DATA_FOLLOWER_DATA,
      children: [
        {
          path: PageEnum.CREATOR_DATA_FOLLOWER_DATA,
          name: 'CREATOR_DATA_FOLLOWER_DATA',
          components: {
            default: () => import('/@/views/creator/data/FollowerData.vue'),
          },
        },
        {
          path: PageEnum.CREATOR_DATA_FOLLOWER_LIST,
          name: 'CREATOR_DATA_FOLLOWER_LIST',
          components: {
            default: () => import('/@/views/creator/data/FollowerList.vue'),
          },
        },
      ],
    },

    // 创作者中心-创作成长-创作等级权益
    {
      path: 'growth/grade',
      name: 'CREATOR_GROWTH_GRADE',
      component: () => import('/@/views/creator/growth/Grade.vue'),
    },
    // 创作者中心-帮助中心-常见问题
    {
      path: 'help/question',
      name: 'CREATOR_HELP_QUESTION',
      component: () => import('/@/views/creator/help/Question.vue'),
    },
  ],
};
